package cn.xutongxue.interview.enums;

import lombok.Getter;

/**
 * @author Administrator
 */

@Getter
public enum Errors {
    NO_AUTH(400403, "权限不足"),
    NOT_LOGIN_ERROR(400401, "未登录"),
    OPERATION_ERROR(400500, "操作异常"),
    PARAMS_ERROR(400501, "参数错误"),
    UNKNOWN_ERROR(500, "服务端异常错误"),
    LIMIT_ERROR(400506, "请求频繁, 请稍后重试"),
    NOT_FOUND_ERROR(40400, "请求数据不存在"),
    ;

    private final int code;
    private final String message;

    Errors(int code, String message) {
        this.code = code;
        this.message = message;
    }

}
